
var api = require('../../../../utils/api.js');
const app = getApp();
Page({

  data: {

    imgUrls: [],

    curr: "",
    imgUrl: app.globalData.imgUrl


  },

  /*点击切换页面*/

  onLoad: function () {
    this.getimg();
  },

  getimg: function () {
    var that = this;
    api.post({
      url: 'festival/Index/getList',
      data: { cid: 3 },
      success: res => {
        console.log(res);
        that.setData({
          imgUrls: res.data
        })
      }
    })
  },

  onShareAppMessage: function () {
    return {
      title: '祝您国庆节快乐！',
      desc: '大家都在送祝福，你也来给朋友送祝福吧!',
      path: '/pages/index/shiyi/shiyie/shiyie'
    }

  }


})

